package com.mian.SpringBootDemo.dao;

import com.mian.SpringBootDemo.domain.Address;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface AddressRepository extends JpaRepository<Address, Integer> {

    List<Address> findByName(String name);

    void deleteByName(String name);
}
